<template>
	<view class="wrapper">
		<!-- <view class="header">
			<view class="action">
				<view class="left">
					<view class="name">普通</view>
					<image src="../../static/trade/trade/icon1.png" mode=""></image>
				</view>
				<view class="right">
					<image src="../../static/trade/trade/icon2.png" mode=""></image>
				</view>
			</view>
			<view class="bg">
				<image src="../../static/trade/trade/bg.png" mode=""></image>
			</view>
		</view> -->
		<view class="header header2">
			<view class="action">
				<view class="left">
					<view class="name">普通</view>
					<image src="../../static/analysis/analysis/icon1.png" mode=""></image>
				</view>
				<view class="right">
					<image src="../../static/analysis/analysis/icon2.png" mode=""></image>
				</view>
			</view>
			<view class="tradeinfo">
				<view class="tradeinfo-right">
					<view class="info">鲁* <text>67****488</text></view>
					<view class="sanjiao"></view>
				</view>
				<view class="tradeinfo-center">
					<view class="info-wrapper-1">
						<text>总资产</text>
						<uni-icons type="info" size="20" color="#999999"></uni-icons>
					</view>
					<view class="info-wrapper-2">
						<text>0.00</text>
						<uni-icons type="eye" size="20" color="#999999"></uni-icons>
					</view>
					<view class="info-wrapper-3">
						<view class="info-wrapper-3-li">
							<view class="label">总市值</view>
							<view class="value">0.00</view>
						</view>
						<view class="info-wrapper-3-li">
							<view class="label">总市值</view>
							<view class="value">0.00</view>
						</view>
						<view class="info-wrapper-3-li">
							<view class="label">总市值</view>
							<view class="value">0.00</view>
						</view>
					</view>
				</view>
				<view class="tradeinfo-bottom">
					<view class="tradeinfo-bottom-li">
						<image src="../../static/trade/trade/icon5.png" mode=""></image>
						<view class="title">账户分析</view>
					</view>
					<view class="tradeinfo-bottom-li">
						<image src="../../static/trade/trade/icon5.png" mode=""></image>
						<view class="title">全净资产</view>
					</view>
				</view>
			</view>
		</view>
		<view class="loginaction">
			<view class="loginstart">
				<view class="left">登陆后查看持仓和盈亏</view>
				<view class="right">登录/开户</view>
			</view>
			<view class="action">
				<view class="action-li"  @tap="jumpNavigateTo('/pages/trade/entrust?index=0')">
					<view class="title" style="color: #EA0E00;">买</view>
					<view class="subtitle">买入</view>
				</view>
				<view class="action-li"  @tap="jumpNavigateTo('/pages/trade/entrust?index=1')">
					<view class="title" style="color: #08377D;">卖</view>
					<view class="subtitle">卖出</view>
				</view>
				<view class="action-li"  @tap="jumpNavigateTo('/pages/trade/entrust?index=2')">
					<view class="title" style="color: #999999;">撤</view>
					<view class="subtitle">撤单</view>
				</view>
				<view class="action-li" style="color: #FEA330;"  @tap="jumpNavigateTo('/pages/trade/entrust?index=3')">
					<view class="title">持</view>
					<view class="subtitle">持仓</view>
				</view>
			</view>
			<view class="action2">
				<view class="action2-li"  @tap="jumpNavigateTo('/pages/trade/entrust?index=4')">
					<image src="../../static/trade/trade/action2-1.png"></image>
					<view class="name">委托查询</view>
				</view>
				<view class="action2-li"  @tap="jumpNavigateTo('/pages/trade/entrust?index=4')">
					<image src="../../static/trade/trade/action2-2.png"></image>
					<view class="name">成交查询</view>
				</view>
				<view class="action2-li"  @tap="jumpNavigateTo('/pages/index/yinhangzhuanzheng')">
					<image src="../../static/trade/trade/action2-3.png"></image>
					<view class="name">银证转账</view>
				</view>
				<view class="action2-li">
					<image src="../../static/trade/trade/action2-4.png"></image>
					<view class="name">更多</view>
				</view>
			</view>
		</view>
		<view class="new">
			<view class="today">
				<view class="today-head flexs">
					<view class="left flexs">
						<image src="../../static/trade/trade/icon3.png"></image>
						<view class="name">今日打新</view>
					</view>
					<view class="right flexs">
						<view class="label">新股：</view>
						<view class="num">1</view>
					</view>
				</view>
				<view class="today-info">
					<view class="name">股票名称<text>4844</text></view>
					<view class="today-info-detail">
						<view class="info-info">
							<view class="title">4854</view>
							<view class="subtitle">申购数量</view>
						</view>
						<view class="info-info">
							<view class="title">45888.00</view>
							<view class="subtitle">金额</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="list">
			<view class="listurl">
				<view class="left">安全设置</view>
				<view class="right"><uni-icons type="right" size="18" color="#999999"></uni-icons></view>
			</view>
		</view>
		<view class="empty" style="height: 100rpx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
	
		},
		methods: {
			jumpNavigateTo(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		width: 100%;
		height: 100%;
		background-color: #F6F4F9;
	}
	.wrapper {
		height: 100%;
		box-sizing: border-box;
	}
	.header{
		height: 517rpx;
		position: relative;
		.action{
			width: 100%;
			padding: 0 33rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			align-items: center;
			position: absolute;
			top: 60rpx;
			z-index: 1;
			.left{
				font-weight: bold;
				font-size: 48rpx;
				color: #FFFFFF;
				line-height: 36rpx;
				text-align: center;
				image{
					width: 56rpx;
					height: 11rpx;
				}
			}
			.right image{
				width: 26rpx;
				height: 27rpx;
			}
		}
		.bg{
			position: relative;
			z-index: 0;
			width: 100%;
			height: 607rpx;
			image{
				width: 100%;
				height: 100%;
			}
		}
	}
	.header2{
		background-color: #fff;
		.action {
			.left{
				color: #08377D;
			}
		}
		.tradeinfo{
			width: 684rpx;
			height: 347rpx;
			margin: 0 auto;
			position: relative;
			top: 160rpx;
			background: linear-gradient(90deg, #fff, #F6F6FB 100%);
			.tradeinfo-right{
				width: 256rpx;
				position: absolute;
				top: 20rpx;
				right: 20rpx;
				.info{
					font-size: 24rpx;
					color: #262626;
					line-height: 36rpx;
					position: relative;
					text-align: center;
					text{
						margin-left: 20rpx;
					}
				}
				.info::after{
					content: '';
					position: absolute;
					right: 0rpx;
					top: 12rpx;
					width: 0;
					height: 0;
					border-left: 5px solid transparent;
					border-right: 5px solid transparent;
					border-top: 5px solid #666666;
				}
			}
			.tradeinfo-center{
				width: 100%;
				padding: 0 24rpx;
				box-sizing: border-box;
				border-bottom: 1rpx solid #e5e5e5;
				.info-wrapper-1{
					font-size: 32rpx;
					color: #262626;
					display: flex;
					gap: 20rpx;
					align-items: center;
					font-size: 24rpx;
					color: #999999;
					padding: 50rpx 0 0;
					
				}
				.info-wrapper-2{
					font-size: 32rpx;
					color: #262626;
					display: flex;
					gap: 20rpx;
					font-weight: bold;
					font-size: 32rpx;
					color: #262626;
					padding: 10rpx 0 0;
				}
				.info-wrapper-3{
					font-size: 32rpx;
					color: #262626;
					display: flex;
					justify-content: space-between;
					gap: 20rpx;
					font-weight: bold;
					font-size: 32rpx;
					color: #262626;
					padding: 20rpx 0;
					.label{
						font-size: 24rpx;
						color: #999999;
					}
				}
			}
			.tradeinfo-bottom{
				height: 113rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				gap: 20rpx;
				.tradeinfo-bottom-li{
					width: 50%;
					display: flex;
					justify-content: center;
					align-items: center;
					gap: 20rpx;
					font-size: 28rpx;
					color: #262626;
					image{
						width: 44rpx;
						height: 44rpx;
					}
				}
				
			}
		}
	}
	.loginaction{	
		padding: 22rpx 33rpx 22rpx;
		margin-bottom: 32rpx;
		background-color: #fff;
		border-radius: 12rpx;
		position: relative;
		z-index: 2;
		.loginstart{
			display: flex;
			justify-content: space-between;
			align-items: center;
			width: 694rpx;
			height: 150rpx;
			padding: 0 45rpx;
			box-sizing: border-box;
			background: url('../../static/trade/trade/login-bg.png') no-repeat;
			background-position: center center;
			background-size: 100% 100%;
			.left{
				font-weight: bold;
				font-size: 32rpx;
				color: #08377D
			}
			.right{
				width: 168rpx;
				height: 56rpx;
				background: linear-gradient(90deg, #004EC2, #08377D);
				border-radius: 28rpx;
				text-align: center;
				line-height: 56rpx;
				font-weight: bold;
				font-size: 24rpx;
				color: #FFFFFF;
			}
		}
		.action{
			display: flex;
			justify-content: space-between;
			margin: 25rpx auto;
			.action-li{
				width: 153rpx;
				height: 153rpx;
				text-align: center;
				background: linear-gradient(-90deg, #F6F6FB, rgba(255,255,255,0));
				box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(8,55,125,0.1);
				border-radius: 10rpx;
				.title{
					font-weight: bold;
					font-size: 52rpx;
					line-height: 90rpx;
				}
				.subtitle{
					font-weight: 500;
					font-size: 28rpx;
					color: #262626;
				}
			}
		}
		.action2{
			display: flex;
			justify-content: space-between;
			.action2-li{
				width: 25%;
				text-align: center;
				margin-bottom: 20rpx;
				font-weight: 500;
				font-size: 28rpx;
				line-height: 40rpx;
				color: #262626;
				
				image{
					width: 80rpx;
					height: 80rpx;
					
				}
			}
		}
	}
	.new{
		padding: 32rpx 33rpx;
		margin-bottom: 32rpx;
		background-color: #fff;
		border-radius: 12rpx;
		position: relative;
		z-index: 2;
		
		.today{
			width: 684rpx;
			height: 322rpx;
			box-sizing: border-box;
			padding: 28rpx 24rpx;
			background: url('../../static/trade/trade/bg2.png') no-repeat;
			background-position: center center;
			background-size: 100% 100%;
			.today-head{
				.left{
					font-weight: bold;
					font-size: 32rpx;
					color: #262626;
					image{
						width: 36rpx;
						height: 36rpx;
						margin-right: 8rpx;
					}
				}
				.right{
					font-weight: bold;
					font-size: 24rpx;
					color: #262626;
					text{
						font-weight: bold;
						font-size: 32rpx;
						color: #08377D;
					}
				}
			}
			.today-info{
				width: 636rpx;
				height: 210rpx;
				box-sizing: border-box;
				padding: 24rpx;
				background: #FFFFFF;
				border-radius: 10rpx;
				margin: 24rpx auto 0;
				.name{
					font-weight: bold;
					font-size: 28rpx;
					color: #262626;
					padding-bottom: 10rpx;
					border-bottom: 1rpx solid #E5E5E5;
					text{
						margin-left: 24rpx;
						font-weight: 500;
						font-size: 24rpx;
						color: #999999;
					}
				}
				.today-info-detail{
					display: flex;
					justify-content: space-between;
					padding-top: 24rpx;
					.info-info{
						width: 50%;
						text-align: center;
						.title{
							font-weight: bold;
							font-size: 32rpx;
							color: #262626;
							margin: 8rpx auto 16rpx;
						}
						.subtitle{
							font-weight: 500;
							font-size: 20rpx;
							color: #999999;
						}
					}
					.info-info:nth-child(1) {
						border-right: 1rpx solid #E5E5E5;
					}
				}
			}
		}
	}
	.list{
		width: 100%;
		padding: 0 33rpx;
		margin-bottom: 32rpx;
		box-sizing: border-box;
		background-color: #fff;
		border-radius: 12rpx;
		.listurl{
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 93rpx;
			border-bottom: 1rpx solid #E5E5E5;
			.left{
				font-weight: bold;
				font-size: 32rpx;
				color: #262626;
			}
			.right{
				display: flex;
				align-items: center;
				font-weight: 500;
				font-size: 24rpx;
				color: #999999;
			}
		}
	}
	
</style>